package com.zg.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zg.pojo.ProgramList;
import com.zg.service.ProgramListService;

@Controller
@RequestMapping("/programlist")
public class ProgramListController {
	
	@Resource
	private ProgramListService programListService;
	
	@RequestMapping("/addprogramlist")
	public String addProgramList(HttpServletRequest request, Model model){
		
		ProgramList programList = new ProgramList();
		
		programList.setEndtime("adf");
		programList.setStarttime("af");
		programList.setLivestream(2);
		programList.setName("name");
		
		this.programListService.insert(programList);
		return "saf";
	}
}
